#include<stdio.h>
#include<stdlib.h>
void main(){
    FILE * fp;
    char ch;
    fp = fopen("d:\\cprograms\\eg4dot3.c","r");
    if(fp==NULL){
        printf("文件打开错误。\n");
        exit(0);
    }
    while((ch=fgetc(fp))!=EOF){
        putchar(ch);
        fclose(fp);
        printf("\n");
    }
}